package com.atguigu.gmall.rabbit.annotation;

import com.atguigu.gmall.rabbit.component.impl.RabbitServiceImpl;
import com.atguigu.gmall.rabbit.config.AppRabbitAutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @Author:lyd
 * 整合Rabbit配置的注解
 **/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@AutoConfigureAfter(RedisAutoConfiguration.class)
@Import({AppRabbitAutoConfiguration.class, RabbitServiceImpl.class})
public @interface EnableAppRabbitAutoConfiguration {
}
